package com.yoki.cloud.common.protocol.portal.exception.enums;

import lombok.Getter;

/**
 * @author Sky$
 * @Description: TODO
 * @date 2017/10/29$ 16:31$
 */
public enum PortalErrorStatusEnum {

    chapRefuse(2, 1, "发送的Challenge请求被拒绝!!!"),
    chapLinkHadCreate(2, 2, "链接已建立!!!"),
    chapAuthProcess(2, 3, "系统繁忙，请稍后再试!!!"),
    chapFailure(2, 4, "用户Challenge请求失败（发生错误）!!!"),

    authRefuse(4, 1, "发送的认证请求被拒绝!!!"),
    authLinkHadCreate(4, 2, "链接已建立!!!"),
    authProcess(4, 3, "系统繁忙，请稍后再试!!!"),
    authFailure(4, 4, "用户认证请求失败（发生错误）!!!"),

    logoutRefuse(6, 1, "发送的用户下线请求被拒绝!!!"),
    logoutFailure(6, 2, "用户下线请求失败（发生错误）!!!");

    @Getter
    private int type;
    @Getter
    private int errCode;
    @Getter
    private String msg;

    PortalErrorStatusEnum(int type, int errCode, String msg) {
        this.type = type ;
        this.errCode = errCode ;
        this.msg = msg ;
    }

}
